package com.bytime.toss.common.misc;

import java.beans.Beans;

import org.displaytag.decorator.ColumnDecorator;
import org.displaytag.exception.DecoratorException;

import com.nbsoft.qhrp.common.Util;

public class BigDoubleWrapper implements ColumnDecorator
{
    public String decorate(Object arg0) throws DecoratorException 
    {
    	Beans bean = new Beans();
        if (arg0 == null) {
        	return "";
        }
        else {
        	Double tmpDouble = (Double)arg0;
        	return Util.roundBigDouble(tmpDouble.doubleValue(), 2).toString();
        }
  
    }
}
